<!--{subtemplate inc/mobile_header}-->
<script type="text/javascript">
<!--{dynamic getGoodsDynamics args=$goods_result['ids']}-->
</script>
<div id="goods-option">
<form id="goods_form" name="goods_form" action="m.php" method="post">
	<select id="cat" name="cat">
		<option value="0">团购分类</option>
		<!--{loop $goods_cates['list'] $cat}-->
		<option value="$cat[id]"{if $cate_id == $cat['id']} selected="selected"{/if}>$cat[name]</option>
		<!--{/loop}-->
	</select>
	<select id="sort" name="sort">
		<option value="">团购排序</option>
		<option value="spa"{if $sort == 'spa'} selected="selected"{/if}>价格低－高↑</option>
		<option value="spd"{if $sort == 'spd'} selected="selected"{/if}>价格高－低↓</option>
		<option value="da"{if $sort == 'da'} selected="selected"{/if}>折扣低－高↑</option>
		<option value="dd"{if $sort == 'dd'} selected="selected"{/if}>折扣高－低↓</option>
		<option value="ba"{if $sort == 'ba'} selected="selected"{/if}>销量低－高↑</option>
		<option value="bd"{if $sort == 'bd'} selected="selected"{/if}>销量高－低↓</option>
	</select>
	<input type="image" src="{TPL_PATH}images/m/btn_search.gif" id="goods_submit" />
	<input type="hidden" name="action" value="{ACTION_NAME}" />
</form>
<div class="clear"></div>
</div>
<div id="goods-list">
	<!--{if count($goods_result['list']) > 0}-->
	<!--{loop $goods_result['list'] $goods}-->
	<!--{eval $goods['url'] = u('m/show',array('id'=>$goods['id']));}-->
	<!--{eval $goods['sname'] = cutStr('['.$goods['site_name'].']'.$goods['name'],50);}-->
	<!--{if defined('IS_CACHE_TPL')}-->
	<!--{eval $goods['bought'] = '<script type="text/javascript">document.write(goodsDynamics["g_'.$goods['id'].'"]["bought"]);</script>';}-->
	<!--{/if}-->
	<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="td-top">
				<div>
					<a href="$goods[url]" target="_blank"><img src="image.php?src={$goods[small_img]}&width=60&height=38" height="38" width="60" alt="{$goods[site_name]}：{$goods[city]}今日团购:$goods[name]" /></a>
					<a href="$goods[url]" target="_blank" title="{$goods[site_name]}：{$goods[city]}今日团购:$goods[name]" class="name">$goods[sname]</a>
					<!--{if $goods['is_best'] == 1}-->
					<span class="best"></span>
					<!--{elseif $goods['is_new'] == 1}-->
					<span class="new"></span>
					<!--{/if}-->
					<p class="clear"></p>
				</div>
			</td>
		</tr>
		<tr>
			<td class="td_h">
				<div>
					<span class="sprice">$goods[shop_price_format]</span>&nbsp;&nbsp;
					<span class="mprice">$goods[market_price_format]</span>&nbsp;&nbsp;
					<span class="discount">$goods[discount]折</span>&nbsp;&nbsp;
					<span class="bought">售$goods[bought]</span>
				</div>
			</td>
		</tr>
	</table>
	<!--{/loop}-->
	<!--{else}-->
	<!--{if defined('IS_CUSTOM_SITE') && $no_query}-->
	<div class="empty">你还没有定制团购网站！</div>
	<!--{else}-->
	<div class="empty">没有找到符合条件的团购活动！</div>
	<!--{/if}-->
	<!--{/if}-->
	<!--{subtemplate inc/pages}-->
</div>
<!--{subtemplate inc/mobile_footer}-->